<?php

// $Id: vpage_cache_form_view.class.php 1570 2009-01-13 12:44:02Z ogrebg $

require_once(TANGRA_MAIN_DIR.'form/fields/integer/form_field_integer_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/checkbox/form_field_checkbox_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/guardable_form_view.class.php');


class VPage_Cache_Form_View extends Guardable_Form_View {
	function __construct(Form &$form) {
		parent::__construct($form);

		$f_cache = $form->get_field('cache');
		$f_cache_view = new Form_Field_Checkbox_View($form->get_name().'_'.$f_cache->get_name(), $f_cache);
		$this->add_field_view('cache', $f_cache_view);

		$f_cache_expiry = $form->get_field('cache_expiry');
		$f_cache_expiry_view = new Form_Field_Integer_View($form->get_name().'_'.$f_cache_expiry->get_name(), $f_cache_expiry);
		$this->add_field_view('cache_expiry', $f_cache_expiry_view);
	}
}